package JSE_01.Date.Demo_01;

import java.util.Date;

public class Demo00 {
    public static void main(String[] args){
        demo01();
        System.out.println(demo02());
    }

    private static void demo01(){
        Date date=new Date(0L);
        System.out.println(date);
        System.out.println(System.currentTimeMillis());
    }

    public static long demo02(){
        Date date=new Date();
        long time= date.getTime();
        return time;
    }

}
